function bool = isendwith(o, varargin)
% Mordecai Lee, 2012-03-10, Sat, 10:39:56

bool = any(cellfun(@(substr) isEndWith(o.x, substr), varargin));

function bool = isEndWith(x, substr)
slen = length(substr);
if length(x) < slen
    bool = false;
    return;
end

bool = strcmpi(x(end-slen+1 : end), substr);
